
package org.springxrsk.modules.classes.wrapper;

import org.springxrsk.core.mp.support.BaseEntityWrapper;
import org.springxrsk.core.tool.utils.BeanUtil;
import org.springxrsk.modules.classes.pojo.entity.QyClassesLessonsEntity;
import org.springxrsk.modules.classes.pojo.vo.QyClassesLessonsVO;
import java.util.Objects;

/**
 * 课表 包装类,返回视图层所需的字段
 *
 *  @author
 * @since 2024-06-23
 */
public class QyClassesLessonsWrapper extends BaseEntityWrapper<QyClassesLessonsEntity, QyClassesLessonsVO>  {

	public static QyClassesLessonsWrapper build() {
		return new QyClassesLessonsWrapper();
 	}

	@Override
	public QyClassesLessonsVO entityVO(QyClassesLessonsEntity qyClassesLessons) {
		QyClassesLessonsVO qyClassesLessonsVO = Objects.requireNonNull(BeanUtil.copyProperties(qyClassesLessons, QyClassesLessonsVO.class));

		//User createUser = UserCache.getUser(qyClassesLessons.getCreateUser());
		//User updateUser = UserCache.getUser(qyClassesLessons.getUpdateUser());
		//qyClassesLessonsVO.setCreateUserName(createUser.getName());
		//qyClassesLessonsVO.setUpdateUserName(updateUser.getName());

		return qyClassesLessonsVO;
	}


}
